<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript"
	src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<style type="text/css"></style>
<script type="text/javascript">
	$(document).ready(function() {
		$("#container div a").click(function() {
			$(this).parent().animate({
				width : '+=100px'
			}, 500);
			
			var index=$("#container a").index(this);
			
			window.location.href="dovote.jsp?index="+index;
				
			
			//$(this).prev().html(parseInt($(this).prev().html()) + 1);
			return false;
		});
	});
</script>
<style type="text/css">
* {
	font-family: Arial, "Free Sans";
}

#container {
	margin-top: 20px;
	color: #fff;
}

#container #question {
	display: block;
	padding: 20px;
	font-weight: bold;
	letter-spacing: -3px;
	margin-bottom: 20px;
	padding: 10px;
	font-size: 40px;
}

#container div {
	font-weight: bold;
	letter-spacing: -3px;
	background: #0099cc;
	margin-bottom: 15px;
	padding: 10px;
	font-size: 34px;
	color: #ffffff;
	border-left: 20px solid #333;
	width: 400px;
	-webkit-border-radius: 0.5em;
	-moz-border-radius: 0 0.5em 0.5em 0;
	border-radius: 0 1.5em 1.5em 0;
}

#container div a {
	border-radius: 0.3em;
	text-decoration: none;
	color: #0099cc;
	padding: 5px 15px;
	background: #333;
	margin: 0 20px;
}

#container div a:hover {
	color: #fff;
}

#main {
	background: #0099cc;
	margin-top: 0;
	padding: 2px 0 4px 0;
	text-align: center;
}

#main a {
	color: #ffffff;
	text-decoration: none;
	font-size: 12px;
	font-weight: bold;
	font-family: Arial;
}

#main a:hover {
	text-decoration: underline;
}

body {
	margin: 0;
	padding: 0;
	background: #ffffff url('img/trentanove.gif') repeat right top;
}

#text {
	margin: 0 auto;
	width: 500px;
	font-size: 12px;
	color: #0099cc;
	font-weight: bold;
	text-align: center;
	margin-top: 20px;
}
</style>
<meta name="chromesniffer" id="chromesniffer_meta"
	content="{&quot;jQuery&quot;:&quot;1.5.1&quot;}">
<script type="text/javascript"
	src="chrome-extension://homgcnaoacgigpkkljjjekpignblkeae/detector.js"></script>
</head>
<body>
	<div id="main">
		<a href="http://superdit.com/">Superdit.com</a> &nbsp;&nbsp;&nbsp; <a
			href="http://superdit.com/2011/03/26/simple-vote-using-jquery-animate">Back
			To Post</a>
	</div>
	<div id="container">
		<span id="question">What is your favorite server side language?</span>
		<div>
			<span><%=application.getAttribute("0") %></span><a href="">Vote</a>PHP
		</div>
		<div>
			<span><%=application.getAttribute("1") %></span><a href="">Vote</a>Ruby
		</div>
		<div>
			<span><%=application.getAttribute("2") %></span><a href="">Vote</a>Java
		</div>
		<div>
			<span><%=application.getAttribute("3") %></span><a href="">Vote</a>ASP
		</div>
		<div>
			<span><%=application.getAttribute("4") %></span><a href="">Vote</a>Perl
		</div>
		<div>
			<span><%=application.getAttribute("5") %></span><a href="">Vote</a>ColdFusion
		</div>
	</div>

</body>
</html>